package demo2;

/**
 * Description:
 * Date: 2025-10-15
 * Time: 20:46
 */
public class Animal {
    String name;
    int age;

    public Animal(String name, int age) {
        this.name = name;
        this.age = age;
    }

    protected void eat() {
        System.out.println(this.name + "正在吃...");
    }
}
